﻿namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbKhuVuc")]
    public partial class TbKhuVuc
    {
        public TbKhuVuc()
        {
            TbTruongTHPTs = new HashSet<TbTruongTHPT>();
        }
        [Key]
        [StringLength(10)]
        [Display(Name ="Mã khu vực")]
        public string MaKhuVuc { get; set; }

        [Required(ErrorMessage = "Bạn chưa nhập khu vực!")]
        [Display(Name = "Khu vực")]
        [StringLength(50)]
        public string TenKhuVuc { get; set; }
        public ICollection<TbTruongTHPT> TbTruongTHPTs { get; set; }
    }
}
